package com.sc.sysconfig.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.sysconfig.dto.UserLoginDTO;
import com.sc.sysconfig.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

/**
 * 系统用户映射器
 *
 * @author 徐赫阳
 * @date 2021/09/02
 */
@Mapper
@Component
public interface SysUserMapper extends BaseMapper<SysUser> {


    /**
     * 登录
     *
     * @param user 用户
     * @return {@link SysUser}
     */
    SysUser login(UserLoginDTO user);

}

